//
//  UserCenterViewModel.h
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/6/3.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfoModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface UserCenterViewModel : NSObject

/**
 获取用户信息

 @param userId 用户id
 @param cmp 成功回调
 */
-(void)fetchUserInfo:(NSString*)userId cmp:(void(^)(UserInfoModel *userModel))cmp;

/**
 更新用户信息

 @param userBirthday 生日
 @param userWeight 体重
 @param userChildren 有几个孩子
 @param userChildbirth 产后几个月
 @param userChildbirthType 生产方式
 @param userMenstrualCycle 月经周期
 @param userMenstrualDays 月经天数
 @param userMenstrualLastBeanDay 上次月经开始时间
 @param cmp 成功回调
 */
-(void)updateUserBirthday:(NSString*)userBirthday
               userWeight:(NSString*)userWeight
             userChildren:(NSString*)userChildren
           userChildbirth:(NSString*)userChildbirth
       userChildbirthType:(NSString*)userChildbirthType
       userMenstrualCycle:(NSString*)userMenstrualCycle
        userMenstrualDays:(NSString*)userMenstrualDays
 userMenstrualLastBeanDay:(NSString*)userMenstrualLastBeanDay
                      cmp:(void(^)())cmp;
@end

NS_ASSUME_NONNULL_END
